{include file="backend/_frame/_header.tpl"}

<div id="header">
    
    {config module="backend" param="sitename" assign="_sitename"}
    <div class="overflow">
		<div class="title"><h1><a href="../">{$_sitename|default:$smarty.server.HTTP_HOST}</a></h1></div>
	    
	    {block module="backend" name="welcome" assign="name"}
		<div class="log_lang_container">
	    	<div class="overflow"><div class="logged">{'YOU_ARE_LOGGED_AS'|translate} <strong>{$name}</strong> <a href="?action=logout">{"LOGOUT"|translate}</a></div></div>
	    </div>
    </div>
    
    <div class="overflow" id="lang_container">
    	<div id="langs">{block module="backend" name="langs"}</div>
    	<div id="interfacelang">{block module="backend" name="InterfaceLang"}</div>
    </div>
</div>

<div id="menu">
	{block module="backend" name="sections"}
</div>

<div id="submenu">

	<div id="submenu1">
		{block module="backend" name="managers"}
	</div>

	<div id="submenu2">
		{if isset($manager)}{include file="backend/_manager.tpl"}{/if}
	</div>

</div>

{if isset($filter_list)}<div id="filter_list">{include file="_context_menu.tpl" left=$filter_list}</div>{/if}

{block module=kernel name=message file="backend/_frame/_message.tpl"}

<div id="main">
	{if $_title}<h2>{$_title|escape}</h2>{/if}
	<div class="table">
	{if isset($manager.header)}
		{assign var=header value=$manager.header}
		{capture assign=header}{$header.module}_{$header.manager}_{$header.action}{/capture}
		<h1 class="title">{$header|translate}</h1>
	{/if}

	{$contents}

	</div>

</div>

<div id="pages"></div>

<div id="footer">
	<p>© Design by <a href="http://www.dizzain.com/">Dizzain.com</a></p>
</div>

{include file="backend/_frame/_footer.tpl"}
